<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 王宇航
  Date: 2023/4/2
  Time: 19:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>图书详情页面</title>
</head>
<body style="text-align: center">
<h1 style="color: aqua">图书详情页面</h1>
<p style="color: blue">ID:${sessionScope.book.id}</p>
<p style="color: blue">主题:${sessionScope.book.title}</p>
<p style="color: blue">发布者:${sessionScope.book.publisher}</p>
<p style="color: blue">作者:${sessionScope.book.author}</p>
<p style="color: blue">发布时间:${sessionScope.book.publicationTime}</p>
<p style="color: blue">价格:${sessionScope.book.price}</p>
<c:choose>
    <c:when test="${sessionScope.user.role eq 0}">
        <a href="/user/signOut">退出登录</a>
    </c:when>
    <c:otherwise>
        <a href="/book/admin/index.jsp">返回首页</a>
    </c:otherwise>
</c:choose>
<img width="100%" height="auto" src="/cover/${sessionScope.book.cover}">
</body>
</html>
